package test;

import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class Student {
    private int age;
    private String name;
    public TestString t = null;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void printHello(){
        System.out.println("hello");
    }

    public static void main(String[] args) throws NoSuchFieldException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, ClassNotFoundException {
//        Student s=null;

//        Class<Student> studentClass = Student.class;
//        Class<?> studentClass = Class.forName("test.Student");
//        Class<?> aClass2 = Class.forName("test.TestString");
//        Field name = studentClass.getDeclaredField("t");
//        Student student = new Student();
//        name.set(student.getClass(),aClass2);
//        System.out.println(name);
//        t.test1();
//        System.out.println(student.t);
//        new Test();
    }
}
